private ["_isAdmin"];

_isAdmin = false;

if (!_isAdmin) then {
	_isAdmin = ((serverCommandAvailable "#shutdown") || (isServer AND !isDedicated) || !isMultiplayer);
};
if (!_isAdmin && mprightsDisable < 1 && local player) then {
	_isAdmin = [(getPlayerUID player),"admin"] call mp_rights_fnc_hasRoles;
};

_isAdmin;